#ifndef EVDEV_H
#define EVDEV_H

#ifdef __cplusplus
extern "C" {
#endif

#include "lvgl.h"
#include "lvgl/lvgl.h"

#if LV_USE_LINUX_FBDEV

// USB 鼠标
// #define MOUSE_USB_EVDEV "/dev/usb_mouse"

// 触摸屏
#define MOUSE_TOUCH_EVDEV "/dev/input/event2"
#define TOUCH_MAX_POINT_X 1080
#define TOUCH_MAX_POINT_Y 1920

/**
 * Initialize the evdev
 */
bool mouse_evdev_init(void);
int mouse_check_plughandl(void) ;

void mouse_evdev_deinit(void);
/**
 * Get the current position and state of the evdev
 * @param data store the evdev data here
 */
void mouse_evdev_read(lv_indev_t * drv, lv_indev_data_t * data);

#endif

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* EVDEV_H */
